<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>cmd.Statistics</title>
  <link href="./css/style.css" rel="stylesheet" type="text/css"/>
  <!-- <link href="./img/icon.png" rel="icon" type="image/png"/> -->
  <script type="text/javascript" src="./js/jquery.js"></script>
  <script type="text/javascript" src="./js/modules.js"></script>
  <script type="text/javascript" src="./js/quicksearch.js"></script>
  <script type="text/javascript" src="./js/navigation.js"></script>
  <!--<script type="text/javascript" src="./js/jquery.treeview.js"></script>-->
  <script type="text/javascript">
    var g_moduleFQN = "cmd.Statistics";
  </script>
  
</head>
<body>
<div id="content">
  <h1><a href="./htmlsrc/cmd.Statistics.html" class="symbol">cmd.Statistics</a></h1>
  
<p class="sec_header">Author:</p>Aziz Köksal
<p class="sec_header">License:</p>GPL3
 <p><b>Maturity:</b> average.</p>
<dl>
<dt class="decl">struct <a class="symbol _struct" name="StatsCommand" href="./htmlsrc/cmd.Statistics.html#L15" kind="struct" beg="15" end="101">StatsCommand</a>; <a title="Permalink to this symbol" href="#StatsCommand" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/cmd.Statistics.html#L15">#</a></dt>
<dd class="ddef">
<div class="summary">The statistics comman.</div>
<dl>
<dt class="decl">string[] <a class="symbol _variable" name="StatsCommand.filePaths" href="./htmlsrc/cmd.Statistics.html#L17" kind="variable" beg="17" end="17">filePaths</a>; <a title="Permalink to this symbol" href="#StatsCommand.filePaths" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/cmd.Statistics.html#L17">#</a></dt>
<dd class="ddef">
<div class="summary">Module file paths.</div></dd>
<dt class="decl">bool <a class="symbol _variable" name="StatsCommand.printTokensTable" href="./htmlsrc/cmd.Statistics.html#L18" kind="variable" beg="18" end="18">printTokensTable</a>; <a title="Permalink to this symbol" href="#StatsCommand.printTokensTable" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/cmd.Statistics.html#L18">#</a></dt>
<dd class="ddef">
<div class="summary">Whether to print the tokens table.</div></dd>
<dt class="decl">bool <a class="symbol _variable" name="StatsCommand.printNodesTable" href="./htmlsrc/cmd.Statistics.html#L19" kind="variable" beg="19" end="19">printNodesTable</a>; <a title="Permalink to this symbol" href="#StatsCommand.printNodesTable" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/cmd.Statistics.html#L19">#</a></dt>
<dd class="ddef">
<div class="summary">Whether to print the nodes table.</div></dd>
<dt class="decl">void <a class="symbol _function" name="StatsCommand.run" href="./htmlsrc/cmd.Statistics.html#L22" kind="function" beg="22" end="100">run</a><span class="params">()</span>; <a title="Permalink to this symbol" href="#StatsCommand.run" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/cmd.Statistics.html#L22">#</a></dt>
<dd class="ddef">
<div class="summary">Execute the command.</div></dd></dl></dd>
<dt class="decl">struct <a class="symbol _struct" name="Statistics" href="./htmlsrc/cmd.Statistics.html#L104" kind="struct" beg="104" end="142">Statistics</a>; <a title="Permalink to this symbol" href="#Statistics" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/cmd.Statistics.html#L104">#</a></dt>
<dd class="ddef">
<div class="summary">A group of statistics variables.</div>
<dl>
<dt class="decl">uint <a class="symbol _variable" name="Statistics.whitespaceCount" href="./htmlsrc/cmd.Statistics.html#L106" kind="variable" beg="106" end="106">whitespaceCount</a>; <a title="Permalink to this symbol" href="#Statistics.whitespaceCount" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/cmd.Statistics.html#L106">#</a></dt>
<dd class="ddef">
<div class="summary">Counter for whitespace characters.</div></dd>
<dt class="decl">uint <a class="symbol _variable" name="Statistics.wsTokenCount" href="./htmlsrc/cmd.Statistics.html#L107" kind="variable" beg="107" end="107">wsTokenCount</a>; <a title="Permalink to this symbol" href="#Statistics.wsTokenCount" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/cmd.Statistics.html#L107">#</a></dt>
<dd class="ddef">
<div class="summary">Counter for all whitespace tokens.</div></dd>
<dt class="decl">uint <a class="symbol _variable" name="Statistics.keywordCount" href="./htmlsrc/cmd.Statistics.html#L108" kind="variable" beg="108" end="108">keywordCount</a>; <a title="Permalink to this symbol" href="#Statistics.keywordCount" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/cmd.Statistics.html#L108">#</a></dt>
<dd class="ddef">
<div class="summary">Counter for keywords.</div></dd>
<dt class="decl">uint <a class="symbol _variable" name="Statistics.identCount" href="./htmlsrc/cmd.Statistics.html#L109" kind="variable" beg="109" end="109">identCount</a>; <a title="Permalink to this symbol" href="#Statistics.identCount" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/cmd.Statistics.html#L109">#</a></dt>
<dd class="ddef">
<div class="summary">Counter for identifiers.</div></dd>
<dt class="decl">uint <a class="symbol _variable" name="Statistics.numberCount" href="./htmlsrc/cmd.Statistics.html#L110" kind="variable" beg="110" end="110">numberCount</a>; <a title="Permalink to this symbol" href="#Statistics.numberCount" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/cmd.Statistics.html#L110">#</a></dt>
<dd class="ddef">
<div class="summary">Counter for number literals.</div></dd>
<dt class="decl">uint <a class="symbol _variable" name="Statistics.commentCount" href="./htmlsrc/cmd.Statistics.html#L111" kind="variable" beg="111" end="111">commentCount</a>; <a title="Permalink to this symbol" href="#Statistics.commentCount" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/cmd.Statistics.html#L111">#</a></dt>
<dd class="ddef">
<div class="summary">Counter for comments.</div></dd>
<dt class="decl">uint <a class="symbol _variable" name="Statistics.tokenCount" href="./htmlsrc/cmd.Statistics.html#L112" kind="variable" beg="112" end="112">tokenCount</a>; <a title="Permalink to this symbol" href="#Statistics.tokenCount" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/cmd.Statistics.html#L112">#</a></dt>
<dd class="ddef">
<div class="summary">Counter for all tokens produced by the Lexer.</div></dd>
<dt class="decl">uint <a class="symbol _variable" name="Statistics.linesOfCode" href="./htmlsrc/cmd.Statistics.html#L113" kind="variable" beg="113" end="113">linesOfCode</a>; <a title="Permalink to this symbol" href="#Statistics.linesOfCode" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/cmd.Statistics.html#L113">#</a></dt>
<dd class="ddef">
<div class="summary">Number of lines.</div></dd>
<dt class="decl">uint[] <a class="symbol _variable" name="Statistics.tokensTable" href="./htmlsrc/cmd.Statistics.html#L114" kind="variable" beg="114" end="114">tokensTable</a>; <a title="Permalink to this symbol" href="#Statistics.tokensTable" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/cmd.Statistics.html#L114">#</a></dt>
<dd class="ddef">
<div class="summary">Table of counters for all token kinds.</div></dd>
<dt class="decl">uint[] <a class="symbol _variable" name="Statistics.nodesTable" href="./htmlsrc/cmd.Statistics.html#L115" kind="variable" beg="115" end="115">nodesTable</a>; <a title="Permalink to this symbol" href="#Statistics.nodesTable" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/cmd.Statistics.html#L115">#</a></dt>
<dd class="ddef">
<div class="summary">Table of counters for all node kinds.</div></dd>
<dt class="decl">Statistics <a class="symbol _function" name="Statistics.opCall" href="./htmlsrc/cmd.Statistics.html#L117" kind="function" beg="117" end="125">opCall</a><span class="params">(bool <em>allocateTokensTable</em>, bool <em>allocateNodesTable</em> = false)</span>; <span class="attrs">[<span class="stc">static</span>]</span> <a title="Permalink to this symbol" href="#Statistics.opCall" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/cmd.Statistics.html#L117">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">void <a class="symbol _function" name="Statistics.opAddAssign" href="./htmlsrc/cmd.Statistics.html#L127" kind="function" beg="127" end="141">opAddAssign</a><span class="params">(Statistics <em>s</em>)</span>; <a title="Permalink to this symbol" href="#Statistics.opAddAssign" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/cmd.Statistics.html#L127">#</a></dt>
<dd class="ddef"></dd></dl></dd>
<dt class="decl">void <a class="symbol _function" name="execute" href="./htmlsrc/cmd.Statistics.html#L145" kind="function" beg="145" end="148">execute</a><span class="params">(string[] <em>filePaths</em>, bool <em>printTokensTable</em>, bool <em>printNodesTable</em>)</span>; <a title="Permalink to this symbol" href="#execute" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/cmd.Statistics.html#L145">#</a></dt>
<dd class="ddef">
<div class="summary">Executes the statistics command.</div></dd>
<dt class="decl">Statistics <a class="symbol _function" name="getStatistics" href="./htmlsrc/cmd.Statistics.html#L151" kind="function" beg="151" end="222">getStatistics</a><span class="params">(string <em>filePath</em>, bool <em>printTokensTable</em>, bool <em>printNodesTable</em>)</span>; <a title="Permalink to this symbol" href="#getStatistics" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/cmd.Statistics.html#L151">#</a></dt>
<dd class="ddef">
<div class="summary">Returns the statistics for a D source file.</div></dd></dl>
</div>
<div id="footer">
  <p>Copyright © 2007-2008, Aziz Köksal. All rights reserved.</p>
  <p>Page generated by <a href="http://code.google.com/p/dil">dil</a> on Fri Dec 26 04:12:53 2008. Rendered by <a href="http://code.google.com/p/dil/wiki/Kandil">kandil</a>.</p>
</div>
</body>
</html>